package forum.repository;

import forum.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Repository
public interface UserRepository extends JpaRepository<User, Integer>  , JpaSpecificationExecutor<User> {


	List<User> findByUsername(String name);


//	@Query(value="delete * from user where user.userid in (?1)", nativeQuery = true)
//	void deleteUsers(Integer[] ids);

}
